package com.xy.result;

public enum ResultConstant {
    USERNAME_PASSWORD_ERROR_DATA("7","用户名或者密码错误"),
    ERROR_CHANGEPASSWORD("6","旧密码错误"),
    FAIL("5", "操作失败"),
    ERROR_TOKEN("4","无效TOKEN"),
    ERROR_LOGIN("3", "登陆失败"),
    SUCCESS_LOGIN("2", "登陆成功"),
    SUCCESS("1", "操作成功")
    ;

    private String code;
    private String message;

    ResultConstant(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
